package patterns.prototype;

/**
 * Created by lenovo on 2016/11/23 0023.
 * 正方形，继承抽象图形Shape类
 */
public class Square extends AbsShape{
    //构造函数中初始化自己的形状
    public Square(){
        type = "Square";
    }
    @Override
    public void draw() {
        System.out.print("正方形绘制");
    }
}
